﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="UnInvoiceList.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.InvoiceManage.UnInvoiceList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="UnInvoiceList.aspx">待开票医疗机构</a></li>
            <li><a href="InvocieList.aspx">发票列表</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table width="100%">
            <tr>
                <td align="right">
                    医疗机构名称：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtHospitalName" Width="145px"></asp:TextBox>
                </td>
                <td align="right">
                            <asp:Label ID="Label2" runat="server" Text="所在地区："></asp:Label>
                        </td>
                       <td align="left" runat="server" id="ddlID" visible="true">
                            <asp:DropDownList ID="ddlProvice" runat="server">
                                <asp:ListItem Value="">所在省</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;<asp:DropDownList ID="ddlCity" runat="server">
                                <asp:ListItem Value="">所在城市</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;<asp:DropDownList ID="ddlCountry" runat="server">
                                <asp:ListItem Value="">所在区县</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                <td>
                    <asp:Button runat="server" ID="btnQuery" Text="查询" CssClass="btn" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView runat="server" ID="gvwHospitalList" CssClass="mainlist" AutoGenerateColumns="false" EmptyDataText="暂无可开发票的医疗机构">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex+1+AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <ItemStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="FarAreaName" HeaderText="盟市名称" ReadOnly="true" />
            <asp:BoundField DataField="areaname" HeaderText="旗县名称" ReadOnly="true" />
            <asp:TemplateField HeaderText="医疗机构名称">
                <ItemTemplate>
                    <a href='InvoiceAddNo.aspx?hospitalId=<%# Eval("HospitalID") %>'>
                        <asp:Label runat="server" ID="lblhospital" Text='<%# Eval("HospitalName") %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span>此列表为待开票的医疗机构，可以选择一个医疗机构进入开票。</span></li>
        </ul>
    </div>
    <script type="text/javascript" language="javascript">
        new PCAS("ctl00$ContentPlaceHolder1$ddlProvice","ctl00$ContentPlaceHolder1$ddlCity","ctl00$ContentPlaceHolder1$ddlCountry" <%=GetDefaultAreaString() %>);
    </script>
</asp:Content>
